import Vue from 'vue'
import VueRouter from 'vue-router'
import discovery from '@/components/discovery.vue'
import playlists from '@/components/playlists.vue'
import songs from '@/components/songs.vue'
import mvs from '@/components/mvs.vue'
import result from '@/components/result.vue'

Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'discovery',
        component: discovery
    },
    {
        path: '/discovery',
        name: 'discovery',
        component: discovery
    },
    {
        path: '/playlists',
        name: 'playlists',
        component: playlists
    },
    {
        path: '/songs',
        name: 'songs',
        component: songs
    },
    {
        path: '/mvs',
        name: 'mvs',
        component: mvs
    },
    {
        path: '/result',
        name: 'result',
        component: result
    }
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router